package com.hoyue.interact.bean;

import java.util.Date;

public class Comment {
    //评论id
    private Integer id;

    //评论内容
    private String content;
    //评论时间
    private Date comTime;

    //用户名
    private  String userName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getComTime() {
        return comTime;
    }

    public void setComTime(Date comTime) {
        this.comTime = comTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Comment(String content, Date comTime,String userName){
        this.content=content;
        this.comTime=comTime;
        this.userName=userName;

    }

    public Comment() {

    }



    @Override
    public String toString() {
        return "Comment{" +
                "content='" + content + '\'' +
                ", comTime='" + comTime + '\'' +
                '}';
    }
}